<extend name="Public:comment" />

<block name="title">修改密码</block>

<block name="css">
	<link rel="stylesheet" href="/Application/Home/Common/css/base.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_common.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_header.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_manager.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_form.css" type="text/css" />
</block>

<block name="js">
	<script type="text/javascript" src="/Application/Home/Common/js/jquery.js" ></script>
    <script type="text/javascript" src="/Application/Home/Common/js/topNav.js" ></script>
</block>

<block name="shouye">
	<div id="shop_hd_menu_all_category" class="shop_hd_menu_all_category"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover -->
</block>

<block name="content">
	<!-- 面包屑 注意首页没有 -->
	
	<!-- 面包屑 End -->

	<!-- Header End -->	

	<!-- 我的个人中心 -->
	<div class="shop_member_bd clearfix">
		<!-- 左边导航 -->
		<!-- <div class="shop_member_bd_left clearfix">
			
			<div class="shop_member_bd_left_pic">
				<a href="javascript:void(0);"><img src="/Application/Home/Common/images/avatar.png" /></a>
			</div>
			<div class="clear"></div>

			<dl>
				<dt>我的交易</dt>
				<dd><span><a href="">已购买商品</a></span></dd>
				<dd><span><a href="">我的收藏</a></span></dd>
				<dd><span><a href="">评价管理</a></span></dd>
			</dl>

			<dl>
				<dt>我的账户</dt>
				<dd><span><a href="">个人资料</a></span></dd>
				<dd><span><a href="">密码修改</a></span></dd>
				<dd><span><a href="">收货地址</a></span></dd>
			</dl>

		</div> -->
		<!-- 左边导航 End -->
		
		<!-- 右边购物列表 -->
		<div class="shop_member_bd_right clearfix">
			
			<div class="shop_meber_bd_good_lists clearfix">
				<div class="title"><h3>修改密码</h3></div>
				<div class="clear"></div>
				<div class="shop_home_form" style="margin-left:200px;">
					<form athion="" name="" class="shop_form" method="post">
						<ul>
							<li class="bn"><label>用户名：</label><input type="text" name="name" class="truename form-text" /></li>
							<li class="bn"><label>邮&nbsp;&nbsp;&nbsp;&nbsp;箱：</label><input type="text" name="email" class="truename form-text" id="email"/><span id="email_hint" style="margin-left:20px;color:red;"></span></li>
							<li class="bn"><label>原密码：</label><input type="password" name="opwd" class="truename form-text"/></li>
							<li class="bn"><label>新密码：</label><input type="password" name="pwd" class="truename form-text" id="pwd" /><span id="pwd_hint" style="margin-left:20px;color:red;"></span></li>
							<li class="bn"><label>重复新密码：</label><input type="password" name="repwd" class="truename form-text" id="repwd" /><span id="repwd_hint" style="margin-left:20px;color:red;"></span></li>
							<li class="bn"><label>&nbsp;</label><input type="submit" class="form-submit" value="保存修改" /></li>
						</ul>
					</form>
				</div>
			</div>
		</div>
		<!-- 右边购物列表 End -->

	</div>
	<!-- 我的个人中心 End -->

	<script type="text/javascript">
		$(function(){
			$("#email").blur(function(){
				var val = $(this).val();
				$.ajax({
					   type: "get",
					   url: "{:U('email_hint')}",
					   data: {email:val},
					   success: function(msg){
					     	$("#email_hint").append().html(msg);
					   }
					});
			});

			$("#pwd").blur(function(){
				var val = $(this).val();
				$.ajax({
					   type: "get",
					   url: "{:U('pwd_hint')}",
					   data: {pwd:val},
					   success: function(msg){
					     	$("#pwd_hint").append().html(msg);
					   }
					});
			});

			$("#repwd").blur(function(){
				var val2 = $(this).val();
				var val1 = $("#pwd").val();
				$.ajax({
					   type: "get",
					   url: "{:U('repwd_hint')}",
					   data: {pwd:val1,repwd:val2},
					   success: function(msg){
					     	$("#repwd_hint").append().html(msg);
					   }
					});
			});
		});
	</script>
</block>